package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-05-29 9:46
 */
public class Test02 {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "zs";
        s1.show();
        Student s2 = new Student();
        s2.name = "ls";
        s2.show();

        Student[] students = new Student[2];
        students[0] = s1;
        System.out.println(students[0].name);
        students[1] = new Student();
        students[1].name = "ww";

        for (int i = 0; i < students.length; i++) {
            Student stu = students[i];
            System.out.println(students[i].name);
            stu.show();
        }

        int[] a=null;
        for( int i : a){}

        for (Student stu  : students) {
            stu.show();
        }

    }
}
